package com.bkck.sharkblockade.loadPage;

import com.bkck.sharkblockade.menu.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

/**
 * The loading page. Serves as a page to buy some time so an Activity (for level) can properly shut
 * down before going into the next level.
 * 
 * @author Team BKCK.
 * 
 */
public class LoadingPage extends Activity {

  /**
   * Called when the activity is first created.
   */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // requesting to turn the title OFF
    requestWindowFeature(Window.FEATURE_NO_TITLE);

    // making it full screen
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);

    setContentView(R.layout.loadpage);
  }

  @Override
  public void onPause() {
    finish();
    super.onDestroy();     
  }

}
